'use strict';
const db = uniCloud.database();
exports.main = async (event, context) => {
  //event为客户端上传的参数
  const collection = db.collection('users');
  // collection.add({
	 //  data:{
		//   "username":"zzzzzz",
		//   "password":"6666666"
	 //  }
  //   }).then(res=>{console.log(res)}).catch(e=>{console.log(msg)});
  let res=await collection.add({
		  "username":"zzzz31zz",
		  "password":"6666666"
  });
  // console.log('event : ' + event)
  console.log('event : ')
  return event
};
